﻿<%@ Page Title="添加物业管理员" Language="C#" MasterPageFile="~/AdminMenu.master" AutoEventWireup="true"
    CodeBehind="CreateNewUser.aspx.cs" Inherits="RealtyManagementSystem.Web.Admin.CreateNewUser" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="admin_menuHead">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="admin_menuContent">
    <asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="False" OnCreatedUser="RegisterUser_CreatedUser"
        LoginCreatedUser="False" ContinueDestinationPageUrl="~/Admin/UserRoleManagement.aspx">
        <LayoutTemplate>
            <asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder>
            <asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder>
        </LayoutTemplate>
        <WizardSteps>
            <asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
                <ContentTemplate>
                    <div class="change_password_title">
                        创建新<%=  RoleName %>帐户
                    </div>
                    <div class="clean">
                    </div>
                    <div class="change_password_notice">
                        使用以下表单创建新帐户。
                    </div>
                    <div class="clean">
                    </div>
                    <div class="change_password_notice">
                        密码的长度至少必须为
                        <%= Membership.MinRequiredPasswordLength %>
                        个字符。
                    </div>
                    <div class="clean">
                    </div>
                    <span class="failureNotification">
                        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                    <div class="accountInfo">
                        <fieldset class="register">
                            <legend>
                                <%=  RoleName %>帐户信息 </legend>
                            <div class="inform_contain">
                                <div class="realty_detail_title_2">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></div>
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    CssClass="failureNotification" ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。"
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                            <div class="inform_contain">
                                <div class="realty_detail_title_2">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">电子邮件:</asp:Label></div>
                                <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                    CssClass="failureNotification" ErrorMessage="必须填写“电子邮件”。" ToolTip="必须填写“电子邮件”。"
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                            <div class="inform_contain">
                                <div class="realty_detail_title_2">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label></div>
                                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    CssClass="failureNotification" ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                            <div class="inform_contain">
                                <div class="realty_detail_title_2">
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">确认密码:</asp:Label></div>
                                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification"
                                    Display="Dynamic" ErrorMessage="必须填写“确认密码”。" ID="ConfirmPasswordRequired" runat="server"
                                    ToolTip="必须填写“确认密码”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                    ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                                    ErrorMessage="“密码”和“确认密码”必须匹配。" ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                            </div>
                        </fieldset>
                        <p class="submitButton">
                            <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="创建"
                                ValidationGroup="RegisterUserValidationGroup" CssClass="asp_button_style" BackColor="White"
                                BorderColor="#A5A5A5" BorderStyle="Solid" BorderWidth="1px" Width="100px" />
                        </p>
                    </div>
                </ContentTemplate>
                <CustomNavigationTemplate>
                </CustomNavigationTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep runat="server">
                <ContentTemplate>
                    <div class="sussce_notice_1">
                        完成<br />
                        已成功创建您的帐户!
                    </div>
                    <div class="sussce_notice_1">
                        <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                            Text="继续" ValidationGroup="RegisterUser" CssClass="continue_sytle_1" /></div>
                    <%--<table>
                            <tr>
                                <td align="center" colspan="2">
                                    完成
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    已成功创建您的帐户。
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                </td>
                            </tr>
                        </table>--%>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
</asp:Content>